﻿using System;
using System.Collections.Generic;
using System.Text;
using Model.Security.EntityInfo;
using Model.BusinessLogic.EntityInfo;

namespace Util
{
    public class AllPageMeans
    {
        /// <summary>
        /// 获取联系人最大索引值
        /// </summary>
        /// <param name="entityList"></param>
        /// <returns></returns>
        public int GetLianXiRenMaxIndex(List<LianXiRenEntity> entityList)
        {
            int flag = 0;
            foreach (LianXiRenEntity entity in entityList)
            {
                if (flag < entity.Index)
                {
                    flag = entity.Index;
                }
            }
            return flag + 1;
        }
    }
}
